public class Day_27_1_不用加减乘除做加法 {
    public int Add(int num1,int num2) {
        int sum = 0;
        int add = 0;
        while(num2 != 0) {
            sum = num1 ^ num2;
            add = (num1 & num2) << 1;
            num1 = sum;
            num2 = add;
        }
        return num1;
    }
}
